package at.guigu.controller;

/**
 * 封装自定义的响应码
 */
public class Code {
    /*增删改查*/
    // 1结尾代表成功
    public static final Integer SAVE_OK = 20011;
    public static final Integer DELETE_OK = 20021;
    public static final Integer UPDATE_OK = 20031;
    public static final Integer SELETE_OK = 20041;
    // 0结尾代表失败
    public static final Integer SAVE_ERR = 20010;
    public static final Integer DELETE_ERR = 20020;
    public static final Integer UPDATE_ERR = 20030;
    public static final Integer SELETE_ERR = 20040;

    /*异常*/
    // 系统异常
    public static final Integer SYST_EXC = 50001;
    // 业务异常
    public static final Integer BUSI_EXC = 50002;
    // 其它未知异常
    public static final Integer UNKNOW_EXC = 50003;
}
